home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / sonido / mod-0.000 / mod-0 / mod / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-29  |  2.4 KB  |  119 lines

  1. #
  2. # Makefile for 'mod'. Requires GNU-make (at least I think it does).
  3. #
  4. # (C) 1994 Mikael Nordqvist (d91mn@efd.lth.se, mech@df.lth.se)
  5. #
  6.  
  7. #
  8. # Targets:
  9. #
  10. # all:       Create the executable(s).
  11. # install:   Installs the executable and the manual-page(s).
  12. # clean:     Remove all object-files.
  13. # distclean: All unnecessary files (except protos.h) are removed.
  14. #
  15.  
  16. MODVERSION = 0.61
  17.  
  18. CC = gcc
  19.  
  20. #
  21. # Below you can configure 'mod' to your needs.
  22. #
  23.  
  24. # Make sure that your ncurses-directory is searched for include-files.
  25.  
  26. CFLAGS  = -pipe -Wall -I/usr/include/ncurses
  27. LDFLAGS = -lncurses
  28.  
  29. #
  30. # Select a sutiable set of CFLAGS below.
  31. #
  32.  
  33. # Optimized
  34.  
  35. CFLAGS  += -fomit-frame-pointer -m486 -O2 
  36. LDFLAGS += -s
  37.  
  38. # Normal options
  39.  
  40. #CFLAGS  +=
  41. #LDFLAGS += -s
  42.  
  43. # Debugging and optimization
  44.  
  45. #CFLAGS += -g -O2
  46.  
  47. # Debugging
  48.  
  49. #CFLAGS += -g
  50.  
  51. #
  52. # Compile-time configurable options. Comment/uncomment to your wishes.
  53. #
  54.  
  55. # Enable if you want to check for color-support before trying to use it.
  56. # If disabled, we bypass the check and just hope it works.
  57.  
  58. CFLAGS+=-DNCURSES_CHECK_FOR_COLOR
  59.  
  60. # On slow machines you might get "lagged behind" when scrolling the file-list
  61. # as screen-updating is slow. Define FLUSH_INPUT if you always want to be
  62. # in sync, even if file-selection gets a bit more sluggish. (This is actually
  63. # a general switch that will flush the input after whatever operation
  64. # was requested has finished).
  65.  
  66. #CFLAGS+=-DFLUSH_INPUT
  67.  
  68. #
  69. # Installation paths (no trailing /).
  70. #
  71.  
  72. BINDIR = /usr/local/bin
  73. MANDIR = /usr/local/man/man1
  74.  
  75. #
  76. # Dependencies. Nothing below this line needs changing for a normal
  77. # installation.
  78. #
  79.  
  80. OBJS= main.o controller.o player.o screen.o options.o init.o myseq.o \
  81.       file.o play.o sample.o load.o load_mod.o load_ult.o load_mtm.o \
  82.       load_s3m.o effects.o tables.o util.o debug.o mklist.o help.o
  83.  
  84. all: mod
  85.  
  86. mod: $(OBJS)
  87.     gcc -o mod $(OBJS) $(LDFLAGS)
  88.  
  89. clean:
  90.     rm -f $(OBJS)
  91.  
  92. distclean: clean
  93.     rm -f mod
  94.  
  95. install:
  96.     install mod $(BINDIR); ln -sf $(BINDIR)/mod $(BINDIR)/mod_mklist;\
  97.         install -m 644 mod.1 $(MANDIR); install -m 644 mod_mklist.1 $(MANDIR)
  98.  
  99. #
  100. # These targets are used only while maintaining 'mod'.
  101. #
  102.  
  103. pmod: $(OBJS)
  104.     gcc -o pmod $(OBJS) $(LDFLAGS) -p
  105.  
  106. protos:
  107.     ./make_protos > protos.h
  108.  
  109. dist: distclean
  110.     ls > FILES; cd ..; tar zcvf mod-$(MODVERSION).tgz mod
  111.  
  112. bak:
  113.     cd ..; tar zcvf mod.`date +"%y%m%d"`.tgz mod
  114.  
  115. # No dependence on protos.h (I handle that manually)
  116.  
  117. $(OBJS): mod.h
  118. controller.o play.o player.o util.o: message.h
  119.